package net.tensor.tensorprovider.database.controller;


import net.tensor.tensorprovider.database.service.impl.ActGeBytearrayServiceImpl;
import net.tensor.tensorprovider.exception.ResultBody;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2020-10-19
 */
@RestController
@RequestMapping("/act-ge-bytearray")
public class ActGeBytearrayController {
    @Autowired
    private ActGeBytearrayServiceImpl actGeBytearrayService;

    @GetMapping
    public ResultBody resultBody(){
        ResultBody resultBody=new ResultBody();
        resultBody.setResult("200");
        resultBody.setMessage("成功");
        resultBody.setResult(actGeBytearrayService.list());
        return resultBody;
    }
}
